package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.system.domain.Wtgl;
import com.ruoyi.system.domain.vo.issueMap;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.FeedbackMapper;
import com.ruoyi.system.domain.Feedback;
import com.ruoyi.system.service.IFeedbackService;

/**
 * illustriousness.`feedback`Service业务层处理
 *
 * @author ruoyi
 * @date 2022-12-02
 */
@Service
public class FeedbackServiceImpl implements IFeedbackService
{
    @Autowired
    private FeedbackMapper feedbackMapper;

    /**
     * 查询illustriousness.`feedback`
     *
     * @param id illustriousness.`feedback`主键
     * @return illustriousness.`feedback`
     */
    @Override
    public Feedback selectFeedbackById(Long id)
    {
        return feedbackMapper.selectFeedbackById(id);
    }

    /**
     * 查询illustriousness.`feedback`列表
     *
     * @param feedback illustriousness.`feedback`
     * @return illustriousness.`feedback`
     */
    @Override
    public List<Feedback> selectFeedbackList(Feedback feedback)
    {
        return feedbackMapper.selectFeedbackList(feedback);
    }

    /**
     * 新增illustriousness.`feedback`
     *
     * @param feedback illustriousness.`feedback`
     * @return 结果
     */
    @Override
    public int insertFeedback(Feedback feedback)
    {
        return feedbackMapper.insertFeedback(feedback);
    }

    /**
     * 修改illustriousness.`feedback`
     *
     * @param feedback illustriousness.`feedback`
     * @return 结果
     */
    @Override
    public int updateFeedback(Feedback feedback)
    {
        return feedbackMapper.updateFeedback(feedback);
    }

    /**
     * 批量删除illustriousness.`feedback`
     *
     * @param ids 需要删除的illustriousness.`feedback`主键
     * @return 结果
     */
    @Override
    public int deleteFeedbackByIds(Long[] ids)
    {
        return feedbackMapper.deleteFeedbackByIds(ids);
    }

    /**
     * 删除illustriousness.`feedback`信息
     *
     * @param id illustriousness.`feedback`主键
     * @return 结果
     */
    @Override
    public int deleteFeedbackById(Long id)
    {
        return feedbackMapper.deleteFeedbackById(id);
    }

    //多表关联
    @Override
    public List<issueMap> selwtgllist(issueMap issuemap) {
        return feedbackMapper.selwtgllist(issuemap);
    }
    //审批
    @Override
    public int upd(int id, int val) {
        return feedbackMapper.upd(id,val);
    }
}
